package org.ligson.org;

import java.util.Date;
import java.util.Random;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class RandomTest {
    public static void main(String[] args) {
        Random random = new Random();

        ExecutorService pool = Executors.newCachedThreadPool();
        for (int i = 0; i < 1000; i++) {
            pool.execute(new Runnable() {
                @Override
                public void run() {
                    Random random2 = new Random(new Date().getTime());
                    System.out.println(random.nextDouble()+"-----------"+random2.nextDouble());


                }
            });
        }
    }
}
